home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
367
< prev
next >
Wrap
Text File
|
1996-08-06
|
1KB
|
38 lines
Path: solon.com!not-for-mail
From: jmccarty@spdmail.spd.dsccc.com (Mike McCarty)
Newsgroups: comp.std.c,comp.lang.c.moderated
Subject: Re: Integral promotion.
Date: 24 Feb 1996 09:37:29 -0600
Organization: DSC Communications Corporation, Plano, Texas USA
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4gnbbp$bhu@solutions.solon.com>
References: <4fstj7$2l6@solutions.solon.com> <4fu835$9de@solutions.solon.com> <4fvgrm$dv9@solutions.solon.com> <4g27gn$q5k@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
In article <4g27gn$q5k@solutions.solon.com>,
Chris Torek <torek@bsdi.com> wrote:
)In article <4fvgrm$dv9@solutions.solon.com>, <msb@sq.com> wrote:
[stuff cut]
)># When a value with integral type is demoted to a signed integer with
)># smaller size ... if the value cannot be represented the result is
)># implementation-defined.
)>
)>Hence implementation-defined behavior occurs.
)
)Thus, the implementation has to say exactly how it handles this.
)There is still some question as to whether the implementation can
)define it as an overflow resulting in program termination, is there
)not?
Where in the standard does it say that a compiler must be accompanied by
-any- documentation?
Mike
----
char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
I don't speak for DSC. <- They make me say that.